package HomeWOrk2;

import java.util.HashSet;

public class test3 {
    public static void main(String[] args) {
        HashSet<Student> hashSet = new HashSet<>();
        hashSet.add(new Student("张三","男",20));
        hashSet.add(new Student("李四","女",21));
        hashSet.add(new Student("张三","男",20));
        for (Student student : hashSet) {
            System.out.println(student);
        }
    }
}
